package com.bci.pwtz.mysql.model;

import java.util.Date;
import java.util.List;

public class CompanyUser {
    private Long companyUserId;

    private String loginName;

    private String loginPwd;

    private Integer status;

    private Date createTime;

    private String mobile;

    private Long lastCompanyId;

    private String deviceId;
    
    private String userName;
    
    private Integer loginStatus;
    
    private List<CompanyRole> rolelist;

    public Long getCompanyUserId() {
        return companyUserId;
    }

    public void setCompanyUserId(Long companyUserId) {
        this.companyUserId = companyUserId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd == null ? null : loginPwd.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Long getLastCompanyId() {
        return lastCompanyId;
    }

    public void setLastCompanyId(Long lastCompanyId) {
        this.lastCompanyId = lastCompanyId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }
    
    /**
     * @return the userName
     */
    public String getUserName()
    {
        return userName;
    }

    /**
     * @param userName the userName to set
     */
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    /**
     * @return the loginStatus
     */
    public Integer getLoginStatus()
    {
        return loginStatus;
    }

    /**
     * @param loginStatus the loginStatus to set
     */
    public void setLoginStatus(Integer loginStatus)
    {
        this.loginStatus = loginStatus;
    }

    
    public List<CompanyRole> getRolelist() {
		return rolelist;
	}

	public void setRolelist(List<CompanyRole> rolelist) {
		this.rolelist = rolelist;
	}

	/* (non-Javadoc)
     * Description: <br/> 
     *
     * @return 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return "CompanyUser [companyUserId=" + companyUserId + ", loginName=" + loginName + ", loginPwd=" + loginPwd + ", status=" + status + ", createTime=" + createTime + ", mobile=" + mobile + ", lastCompanyId=" + lastCompanyId + ", deviceId=" + deviceId + "]";
    }
    
    
}